package com.bjgzy.rating.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.jess.arms.di.component.AppComponent;

import com.bjgzy.rating.di.module.EntriesModule;
import com.bjgzy.rating.mvp.contract.EntriesContract;
import com.jess.arms.di.scope.FragmentScope;
import com.bjgzy.rating.mvp.ui.fragment.EntriesFragment;

/**
 * @author xubo
 * @date 2018-8-7 17:12:55
 */
@FragmentScope
@Component(modules = EntriesModule.class, dependencies = AppComponent.class)
public interface EntriesComponent {
    void inject(EntriesFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        EntriesComponent.Builder view(EntriesContract.View view);

        EntriesComponent.Builder appComponent(AppComponent appComponent);

        EntriesComponent build();
    }


}